package com.gohi.main.store.hbm.jdbcMapper;



import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.gohi.main.store.hbm.ShopgooBeautician;
import com.gohi.main.store.hbm.ShopgooComment;
import com.gohi.main.store.hbm.ShopgooStore;
import com.gohi.main.store.hbm.ShopgooStoreClass;
import com.gohi.main.util.global.GloblConfig;
/**
 * 留言信息读取
 * @author Administrator
 *
 */
public class CommentMapper implements RowMapper  {
	
	@Override
	public Object mapRow(ResultSet rs, int arg1) throws SQLException {
		// TODO Auto-generated method stub
		ShopgooComment mem =new ShopgooComment();
		mem.setStore_id(rs.getInt("store_id"));//商铺的ID
		mem.setMember_id(rs.getInt("member_id"));//会员ID
		mem.setComment(rs.getString("comment"));//留言信息
		mem.setPhoto(rs.getString("photo"));//图片
		mem.setAdd_time(rs.getInt("add_time"));//添加时间
		mem.setFav_num(rs.getInt("fav_num"));//收藏数
		mem.setOrder_id(rs.getInt("order_id"));//订单编好
		mem.setBeautician_id(rs.getInt("beautician_id"));//技师DI
		mem.setBeautician_name(rs.getString("beautician_name"));//技师名字
		mem.setBeautician_score(rs.getInt("beautician_score"));//技师评分
		mem.setStore_score(rs.getInt("store_score"));//商铺评分
		mem.setIs_good(rs.getInt("is_good"));    //美容师好评：1.好评，2.差评
		mem.setItem_score(rs.getInt("item_score"));    //服务评分 1~5
		mem.setMember_name(rs.getString("nickname"));//会员名字
		mem.setAvatar(rs.getString("avatar"));//头像地址
		return mem;
	}




	
}
